/**
 * Checks whether or not the specified array contains the passed object.
 * @param {Object} obj The object to check.
 * @type Boolean
 */
Array.prototype.contains = function(obj) {
	for (var i=0, len=this.length; i<len; ++i) {
		if (this[i] == obj) {
			return true;
		}
	}
	
	return false;
};

/**
 * Removes the passed object from the specified array.
 * @param {Object} obj The object to remove.
 */
Array.prototype.remove = function(obj) {
	for (var i=0, len=this.length; i<len; ++i) {
		if (this[i] == obj) {
			this.splice(i, 1);
			return;
		}
	}
};
